﻿using Kingdee.CDP.WebApi.SDK;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace SDK_Sample_NET6
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello, World!");
            var clienter = new K3CloudApi();
            var param = new QueryParam()
            {
                FormId = "BD_Empinfo",
                FieldKeys = "FName,FStaffNumber,FJoinDate",
            };
            //调用单据查询接口
            var returnInfo = clienter.ExecuteBillQuery(param.ToJson());
            if (returnInfo.Count == 1)
            {
                var resultJObject = JArray.Parse(JsonConvert.SerializeObject(returnInfo[0]));
                Console.WriteLine(resultJObject);
            }
        }

    }
}